import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import store from './store/index.js'

import customTabbar from './components/custom-tabbar.vue'
import customHeader from './components/custom-header.vue'
// main.js
import uView from "uview-ui";
Vue.use(uView);
Vue.component('custom-tabbar',customTabbar)
Vue.component('custom-header',customHeader)
// main.js，注意要在use方法之后执行
// main.js
// main.js，注意要在use方法之后执行

// 如此配置即可

// 如此配置即可
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})

app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif